package org.xp.judgeplatform.pojo.dto.ProblemSetDTO;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "邀请码生成请求")
public class InviteCodeDTO {

    @Min(value = 0, message = "有效期不能为负数")
    @Max(value = 365, message = "有效期最多365天")
    @Schema(description = "有效期天数，0或null表示永久有效", example = "30", minimum = "0", maximum = "365")
    private Integer days;
}
